package com.qfedu.service;

import com.qfedu.pojo.Account;
import com.qfedu.pojo.Cards;
import com.qfedu.pojo.CreditCard;

import java.math.BigDecimal;

public interface AccountService {

    public void openAccount(Account account);

    public boolean existsPhone(String phone);

    public boolean existsIdcode(String idcode);

    public Account queryAccountByIdcode(String idcode);

    Account forgetCheck(String name,String phone,String idcode);

    public Account queryIdcodeByPhone(String phone);

    /*--------------------------------------------------------------*/


    Account findAccountIdcode(String s);

    void transfer(Account source, Cards target, int money);

    Account findMoney();

    Account find1(Account account2);

    Account findAccountPhone(String s);

    void transefer2(CreditCard source, Account target, double money);

    Account findPassword();

    int updateMoney(Account account ,BigDecimal add);
}
